<?php
namespace app\api_wp_v01\controller;

class Personal extends ApiWechatProgram {
	
	/**
	 * 获取信息
	 */
	public function get_info() {
		
		$SubscriberModel = \app\common\model\SubscriberModel::get($this->subscriber_id);
		if(null === $SubscriberModel){
			return $this->disposeJson(1, '未找到用户信息，请联系管理员');
		};
		
		return $this->disposeJson(0, '', array(
			'have_group' => (0 === $SubscriberModel->getData('group_id')) ? false : true,
		));
		
	}
	
}